package com.cxdr.awsips.packing;

import org.apache.log4j.Logger;

import com.cxdr.awsips.packing.config.LinkConfig;
import com.cxdr.awsips.packing.config.SystemConfig;
import com.cxdr.awsips.packing.logger.LogFactory;
import com.cxdr.awsips.packing.processor.FileChecker;
import com.cxdr.awsips.packing.processor.FilePacker;
import com.cxdr.awsips.packing.processor.FileScaner;
import com.cxdr.awsips.packing.processor.StorePackLogProccessor;

public class Start {
	private static Logger logger = LogFactory.makeNewLogger(Start.class);

	/**
	 * @param args
	 * @throws Exception
	 */
	public static void main(String[] args) throws Exception {
		logger.info("*********************************");
		logger.info("开始打包系统服务器");
		logger.info("*********************************");
		Start start = new Start();
		start.start();
	}

	public void start() throws Exception {
			SystemConfig.load();
			FileScaner scaner = new FileScaner();
			scaner.start();
			FilePacker packer = new FilePacker();
			packer.start();
			FileChecker checker = new FileChecker();
			checker.start();
			StorePackLogProccessor storePacklogger = new StorePackLogProccessor();
			storePacklogger.start();
	}
}
